import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { OverlayModule } from '@angular/cdk/overlay';
import { I18NModule } from '../core/i18n/i18n.module';
import { CalendarBaseModule } from '../core/calendar-base/calendar-base.module';
import { IconModule } from '../icon/api';
import { GroupModule } from '../group/api';
import { RadioModule } from '../radio/api';
import { OverflowModule } from '../overflow/api';
import { CalendarPanelComponent } from './calendar-panel.component';
import { CalendarComponent } from './calendar.component';

const COMPONENTS = [CalendarComponent, CalendarPanelComponent];

@NgModule({
  declarations: [...COMPONENTS],
  imports: [
    CommonModule,
    FormsModule,
    I18NModule,
    CalendarBaseModule,
    IconModule,
    GroupModule,
    RadioModule,
    OverflowModule,
    OverlayModule,
  ],
  exports: [...COMPONENTS],
})
export class CalendarModule {}
